Make unknown window types fatal
authorMatthias Clasen <mclasen@redhat.com>
Sat, 19 Nov 2016 23:32:11 +0000 (18:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Nov 2016 02:23:17 +0000 (21:23 -0500)
This helps gcc to see that there's no point in warning about
gdk_window being used uninitialized.

gtk/gtkwindow.c

index cef269a5b2856fba06431dc8cd5c3a9cff7e4bab..94720c3fc746818542b99bb4b377d0f013b4e130 100644 (file)
@@ -6986,7 +6986,7 @@ gtk_window_realize (GtkWidget *widget)
             }
           break;
         default:
-          g_warning (G_STRLOC": Unknown window type %d!", priv->type);
+          g_error (G_STRLOC": Unknown window type %d!", priv->type);
           break;
         }
     }